
package com.javasm.gm.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.gm.Gift;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GiftDao extends BaseMapper<Gift> {

    List<Gift> listGift(Gift g);

    int updateGiftStock(@Param("giftId") Integer giftId, @Param("count") Integer count);

    Integer getGiftIdByGoodsId(Integer goodsId);
}